java find matching elements in two lists